#include <iostream>
#include <stdio.h>
using namespace std;
typedef long long ll;
struct node {
	ll x,y;
};
node a[3];
int main() {
	for (int i=0; i<3; ++i) cin>>a[i].x>>a[i].y;
	node res;
	for (int i=0; i<3; ++i) {
		int nex=(i+1)%3; int nex2=(i+2)%3;
		if ((a[nex].x-a[i].x)*(a[nex2].x-a[i].x)+(a[nex].y-a[i].y)*(a[nex2].y-a[i].y)==0) {
//			cout<<i<<endl;
			res.x=a[nex].x+a[nex2].x-a[i].x;
			res.y=a[nex].y+a[nex2].y-a[i].y;
			break;
		}
	}
	cout<<res.x<<" "<<res.y<<endl;
	return 0;
}
